﻿using GN.Pay.TradeChannel.YJPay.Request;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.YJPay
{
    [Serializable]
    public class YJPayWebService : YJPayServiceBase
    {

        public override string ChannelId
        {
            get
            {
                return "YJPay.WebPay";
            }
        }

        public override ChannelType ChannelType
        {
            get
            {
                return ChannelType.Web;
            }
        }

        public override string ChannelName
        {
            get
            {
                return "易极付";
            }
        }        

        /// <summary>
        /// 
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public override ITradePayApplyResult PayApply(IOrderPayApply order)
        {
            var config = this.channelConfigure;
            var request = new WebPayRequest(this, order, config);
            return request.Build(this, config);
        }
    }
}
